function animi(pname, it, fs, dt) {
this.prt=document.getElementById(pname);
this.pos=-1;
this.dt=dt;this.it=it;
this.dp=0;this.fs=fs;
eval(pname+"a=this");
}
animi.prototype.go = function() {
    var lp = this.pos, prt = this.prt, chlds = $(prt).find("." + this.it); //childNodes;
    if (chlds.length <= 1)
        return;
    for (var p = ((lp >= chlds.length - 1) ? -1 : lp) + 1; p < chlds.length; p = (p == chlds.length - 1) ? 0 : p + 1) {
        var c = chlds.eq(p);
        if (lp >= 0) chlds.eq(lp).fadeOut(this.fs);
        c.fadeIn(this.fs);
        this.pos = p;
        setTimeout(prt.id + "a.go()", this.dt[this.dp]); this.dp++;
        if (this.dp == this.dt.length) this.dp = 0;
        return;
    }
}